package acm.天梯3;

import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        while (sc.hasNext()){
            System.out.println(((sc.nextInt() + sc.nextInt()) % 86)==0?"yes":"no");
        }
    }
}
